#ifndef PAINTITEM_H
#define PAINTITEM_H

#include <QQuickPaintedItem>
#include <QImage>
#include <QPainter>

class PaintItem : public QQuickPaintedItem
{
    Q_OBJECT
public:
    explicit PaintItem(QQuickPaintedItem *parent = nullptr);

public slots:
    void updateImage(const QImage &);

protected:
    void paint(QPainter *painter);

private:
    QImage m_imageThumb;
};


#endif // PAINTITEM_H
